package BehavioralPatterns.Command;

public class DVDOn implements Command {

  DVDReceiver dvdReceiver;

  public DVDOn(DVDReceiver dvdReceiver) {
    this.dvdReceiver = dvdReceiver;
  }

  @Override
  public void excute() {
    dvdReceiver.on();
  }

  @Override
  public void undo() {
    dvdReceiver.off();
  }
}
